package cmd

import (
	"fmt"

	"github.com/gin-gonic/gin"
	"ylm.sl/global"
	"ylm.sl/initialize"
)

func Start() {
	// 初始化配置
	router := initialize.GlobalInit()

	// 设置运行环境
	gin.SetMode(global.Config.Server.Level)

	router.Run(fmt.Sprintf(":%v", global.Config.Server.Port))
}
